//
//  VideoListCell.h
//  AVPlayerDemo
//
//  Created by HN on 2021/6/30.
//

#import <UIKit/UIKit.h>
#import "VideoPlayer.h"
#import "VideoInfo.h"

@class WBVideoListCell;
@protocol WBVideoListCellDelegate <NSObject>
@optional
- (void)playButtonClick:(UIButton *)sender;
@end

@interface WBVideoListCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIView *contentBgView;

@property(strong, nonatomic) VideoInfo *model;

@property(weak, nonatomic) id<WBVideoListCellDelegate> delegate;

@property(nonatomic, strong) NSIndexPath *indexPath; // 用于视频播放定位

@property(nonatomic, strong) VideoPlayer *player;

- (void)shouldToPlay;

@end
